﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CheckIn.aspx.cs" Inherits="DelonixRegiaHotel.CheckIn" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 1270px;
            height: 702px;
        }
        .auto-style3 {
            height: 60px;
        }
        .auto-style4 {
            height: 52px;
        }
        .auto-style6 {
            height: 280px;
            margin-left: 40px;
        }
        .auto-style7 {
            width: 1270px;
        }
        .auto-style8 {
            height: 52px;
            width: 135px;
        }
        </style>
</head>
<body style='background: #000'>
    <form id="form1" runat="server">
    <div>
    
        <table cellspacing="0" class="auto-style1" style="background-image:url(Images/TemplateForHome.png); background-size: cover;">
            <tr>
            <td class="auto-style3" colspan="9">
                <asp:ImageButton ID="btnLogo" runat="server" CausesValidation="False" ImageUrl="~/Images/Delonix Regia Logo.png" OnClick="btnLogo_Click" />
            </td>
            <td class="auto-style3">
                <asp:ImageButton ID="btnLogout" runat="server" CausesValidation="False" ImageUrl="~/Images/Logout.png" OnClick="btnLogout_Click" />
            </td>
        </tr>
        <tr>
            <td class="auto-style4">&nbsp;&nbsp;&nbsp;</td>
            <td class="auto-style4">
                <asp:ImageButton ID="btnAdmin" runat="server" CausesValidation="False" ImageUrl="~/Images/Admin.png" OnClick="btnAdmin_Click" />
            </td>
            <td class="auto-style4">
                <asp:ImageButton ID="btnCheckIn" runat="server" CausesValidation="False" ImageUrl="~/Images/Check-In.png" OnClick="btnCheckIn_Click" />
            </td>
            <td class="auto-style4">
                <asp:ImageButton ID="btnCheckOut" runat="server" CausesValidation="False" ImageUrl="~/Images/Check-Out.png" OnClick="btnCheckOut_Click" />
            </td>
            <td class="auto-style4">
                <asp:ImageButton ID="btnQuery" runat="server" CausesValidation="False" ImageUrl="~/Images/Query.png" OnClick="btnQuery_Click" />
            </td>
            <td class="auto-style4">
                <asp:ImageButton ID="btnBooking" runat="server" CausesValidation="False" ImageUrl="~/Images/Booking.png" OnClick="btnBooking_Click" />
            </td>
            <td class="auto-style4">
                <asp:ImageButton ID="btnRates" runat="server" CausesValidation="False" ImageUrl="~/Images/Rates.png" OnClick="btnRates_Click" />
            </td>
            <td class="auto-style4">
                <asp:ImageButton ID="btnStaff" runat="server" CausesValidation="False" ImageUrl="~/Images/Staff.png" OnClick="btnStaff_Click" />
            </td>
            <td class="auto-style8">
                <asp:ImageButton ID="btnReport" runat="server" CausesValidation="False" ImageUrl="~/Images/Report.png" OnClick="btnReport_Click" />
            </td>
            <td class="auto-style4"></td>
        </tr>
        <tr>
            <td class="auto-style6" colspan="10">
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" AllowSorting="True" AutoGenerateColumns="False" DataKeyNames="room_num" DataSourceID="SqlDataSource1" EmptyDataText="There are no data records to display." ForeColor="Yellow" Font-Size="Small" Width="753px">
                    <Columns>
                        <asp:CommandField ShowSelectButton="True" />
                        <asp:BoundField DataField="first_name" HeaderText="first_name" SortExpression="first_name" />
                        <asp:BoundField DataField="last_name" HeaderText="last_name" SortExpression="last_name" />
                        <asp:BoundField DataField="room_num" HeaderText="room_num" ReadOnly="True" SortExpression="room_num" />
                        <asp:BoundField DataField="check_in_date" HeaderText="check_in_date" SortExpression="check_in_date" />
                        <asp:BoundField DataField="check_in_time" HeaderText="check_in_time" SortExpression="check_in_time" />
                        <asp:BoundField DataField="adult" HeaderText="adult" SortExpression="adult" />
                        <asp:BoundField DataField="child" HeaderText="child" SortExpression="child" />
                        <asp:BoundField DataField="check_in_by" HeaderText="check_in_by" SortExpression="check_in_by" />
                    </Columns>
                    <SelectedRowStyle ForeColor="#FF3300" BorderColor="Red" BorderWidth="2px" />
                </asp:GridView>
                <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:hoteldbConnectionString %>" SelectCommand="SELECT [first_name], [last_name], [check_in_date], [check_in_time], [room_num], [check_in_by], [adult], [child] FROM [HotelGuest]"></asp:SqlDataSource>
                <br />
                <asp:Label ID="Label1" runat="server" ForeColor="Yellow" Text="Calendar"></asp:Label>
&nbsp;
                <asp:ImageButton ID="ImageButton1" runat="server" Height="20px" ImageUrl="~/Images/Calendar_scheduleHS.png" OnClick="ImageButton1_Click" Width="25px" />
                <br />
                <asp:Calendar ID="Calendar1" runat="server" BackColor="White" BorderColor="Black" DayNameFormat="Shortest" Font-Names="Times New Roman" Font-Size="10pt" ForeColor="Black" Height="160px" NextPrevFormat="FullMonth" TitleFormat="Month" Width="350px">
                    <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" ForeColor="#333333" Height="10pt" />
                    <DayStyle Width="14%" />
                    <NextPrevStyle Font-Size="8pt" ForeColor="White" />
                    <OtherMonthDayStyle ForeColor="#999999" />
                    <SelectedDayStyle BackColor="#CC3333" ForeColor="White" />
                    <SelectorStyle BackColor="#CCCCCC" Font-Bold="True" Font-Names="Verdana" Font-Size="8pt" ForeColor="#333333" Width="1%" />
                    <TitleStyle BackColor="Black" Font-Bold="True" Font-Size="13pt" ForeColor="White" Height="14pt" />
                    <TodayDayStyle BackColor="#CCCC99" />
                </asp:Calendar>
                <br />
            </td>
        </tr>
        <tr>
            <td class="auto-style7" colspan="10">&nbsp;</td>
        </tr>
        </table>
    
    </div>
    </form>
</body>
</html>